﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class Rukuguanli_fuliaoService
    {
        //辅料全部查询
        public Bean.Rukuguanli_fuliaoBean rukuguanli_fuliao_ServiceSelect()
        {
            DAO.Rukuguanli_fuliaoDao fuliaodao = new DAO.Rukuguanli_fuliaoDao();
            return fuliaodao.rukuguanli_fuliaoDaoSelect();
        }
        //辅料入库条件查询
        public Bean.Rukuguanli_fuliaoBean rukuguanli_fuliao_ServiceSelectContation(Bean.Rukuguanli_fuliaoBean bean)
        {
            DAO.Rukuguanli_fuliaoDao rukuguanli_fuliao_dao = new DAO.Rukuguanli_fuliaoDao();
            return rukuguanli_fuliao_dao.rukuguanli_fuliaoDaoSelectCondition(bean);
        }

        //辅料入库条件查询 !!库存管理用
        public Bean.Rukuguanli_fuliaoBean rukuguanli_fuliao_kucunguanliServiceSelectContation(Bean.Rukuguanli_fuliaoBean bean)
        {
            DAO.Rukuguanli_fuliaoDao rukuguanlidao = new DAO.Rukuguanli_fuliaoDao();
            return rukuguanlidao.rukuguanli_fuliao_kucunuseDaoSelectCondition(bean);
        }

        //辅料入库添加
        public bool rukuguanli_fuliaoServiceAdd(Bean.Rukuguanli_fuliaoBean bean)
        {
            DAO.Rukuguanli_fuliaoDao ruku_fuliao_dao = new DAO.Rukuguanli_fuliaoDao();
            return ruku_fuliao_dao.rukuguanli_fuliaoDaoAdd(bean);
        }

        //产品入库添加
        public bool rukuguanli_fuliaokucundatechuliadd(Bean.Rukuguanli_fuliaoBean bean)
        {
            DAO.Rukuguanli_fuliaoDao ruku_chanpin_dao = new DAO.Rukuguanli_fuliaoDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyadd(bean);
        }

        //辅料入库辅料库存减
        public bool rukuguanli_fuliaokucundatechulijian(Bean.Rukuguanli_fuliaoBean bean)
        {
            DAO.Rukuguanli_fuliaoDao ruku_chanpin_dao = new DAO.Rukuguanli_fuliaoDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyjian(bean);
        }

    }
}
